package com.rose.rose.service;

import com.rose.entity.Dept;
import com.rose.rose.dao.DeptDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptDao deptDao;

    @Override
    public int insert(Dept record) {
        return deptDao.insert(record);
    }

    @Override
    public Dept selectByPrimaryKey(Long deptno) {
        return deptDao.selectByPrimaryKey(deptno);
    }

    @Override
    public List<Dept> queryAll() {
        return deptDao.queryAll();
    }
}
